﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Classaa
{
    class Monkey : Eat, Iclimb
    {
        protected string name { get; set; }

        public Monkey (string name,string chi):base(chi)
        {
            this.name = name;
        }
        public void climb()
        {
            Console.WriteLine("我是：{0}，我会游泳！", this.name);
        }

        public override void eat()
        {
            Console.WriteLine("我会吃，我爱吃{0}！", this.chi);
        }
    }
}
